package com.victualler.core.common.enums;

/**
 * @author Guoshichang
 * @since 17:29 on 2018/8/14.
 */
public enum ColumnFormatEnum {
    NORMAL("0","正常"),
    IMAGE("1","图片类型"),
    DICT("2","字典类型"),
    DATE("3","日期类型"),
    AUTO("4","输入下拉"),
    LINK("5","链接类型");


    private String key;
    private String value;

    private ColumnFormatEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getValue(String key) {
        ColumnFormatEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            ColumnFormatEnum e = var1[var3];
            if (e.getKey().equals(key)) {
                return e.value;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getKey() {
        return this.key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
